package com.ssh.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import com.opensymphony.xwork2.ActionSupport;
import com.ssh.service.UserService;

public class DeleteAction extends ActionSupport {
	@Autowired
	private UserService userService;
	public String delete(){
		HttpServletRequest request=ServletActionContext.getRequest();
		Integer id=Integer.parseInt(request.getParameter("id"));
		userService.delete(id);
		return "deletesuccess";
	}
}
